home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Displays.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  34.1 KB  |  1,106 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Displays.a
  3. ;
  4. ;    Contains:    Display Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1993-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  19. __DISPLAYS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  25.     include 'Components.a'
  26.     ENDIF
  27.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  28.     include 'Video.a'
  29.     ENDIF
  30.  
  31.     IF 0 THEN
  32.  
  33.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  34.     include 'AppleEvents.a'
  35.     ENDIF
  36.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  37.     include 'Events.a'
  38.     ENDIF
  39.     IF &TYPE('__PROCESSES__') = 'UNDEFINED' THEN
  40.     include 'Processes.a'
  41.     ENDIF
  42.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  43.     include 'Dialogs.a'
  44.     ENDIF
  45.     ENDIF
  46.  
  47.     IF &TYPE('FOR_GLUE_LIB') = 'UNDEFINED' THEN
  48.     FOR_GLUE_LIB: SET 0
  49.     ENDIF
  50.     IF &TYPE('FOR_68kGLUE_LIB') = 'UNDEFINED' THEN
  51.     FOR_68kGLUE_LIB: SET 0
  52.     ENDIF
  53.  
  54.                                                             ; AppleEvents Core Suite 
  55. kAESystemConfigNotice            EQU        'cnfg'                ; Core Suite types 
  56. kAEDisplayNotice                EQU        'dspl'
  57. kAEDisplaySummary                EQU        'dsum'
  58. keyDMConfigVersion                EQU        'dmcv'
  59. keyDMConfigFlags                EQU        'dmcf'
  60. keyDMConfigReserved                EQU        'dmcr'
  61. keyDisplayID                    EQU        'dmid'
  62. keyDisplayComponent                EQU        'dmdc'
  63. keyDisplayDevice                EQU        'dmdd'
  64. keyDisplayFlags                    EQU        'dmdf'
  65. keyDisplayMode                    EQU        'dmdm'
  66. keyDisplayModeReserved            EQU        'dmmr'
  67. keyDisplayReserved                EQU        'dmdr'
  68. keyDisplayMirroredId            EQU        'dmmi'
  69. keyDeviceFlags                    EQU        'dddf'
  70. keyDeviceDepthMode                EQU        'dddm'
  71. keyDeviceRect                    EQU        'dddr'
  72. keyPixMapRect                    EQU        'dpdr'
  73. keyPixMapHResolution            EQU        'dphr'
  74. keyPixMapVResolution            EQU        'dpvr'
  75. keyPixMapPixelType                EQU        'dppt'
  76. keyPixMapPixelSize                EQU        'dpps'
  77. keyPixMapCmpCount                EQU        'dpcc'
  78. keyPixMapCmpSize                EQU        'dpcs'
  79. keyPixMapAlignment                EQU        'dppa'
  80. keyPixMapResReserved            EQU        'dprr'
  81. keyPixMapReserved                EQU        'dppr'
  82. keyPixMapColorTableSeed            EQU        'dpct'
  83. keySummaryMenubar                EQU        'dsmb'
  84. keySummaryChanges                EQU        'dsch'
  85. keyDisplayOldConfig                EQU        'dold'
  86. keyDisplayNewConfig                EQU        'dnew'
  87.  
  88. dmOnlyActiveDisplays            EQU        1
  89. dmAllDisplays                    EQU        0
  90.  
  91.  
  92.                                                             ; DMSendDependentNotification notifyClass 
  93. kDependentNotifyClassShowCursor    EQU        'shcr'                ; When display mgr shows a hidden cursor during an unmirror 
  94. kDependentNotifyClassDriverOverride EQU    'ndrv'                ; When a driver is overridden 
  95. kDependentNotifyClassDisplayMgrOverride EQU 'dmgr'            ; When display manager is upgraded 
  96. kDependentNotifyClassProfileChanged EQU    'prof'                ; When DMSetProfileByAVID is called 
  97.  
  98.  
  99.                                                             ; Switch Flags 
  100. kNoSwitchConfirmBit                EQU        0                    ; Flag indicating that there is no need to confirm a switch to this mode 
  101. kDepthNotAvailableBit            EQU        1                    ; Current depth not available in new mode 
  102. kShowModeBit                    EQU        3                    ; Show this mode even though it requires a confirm. 
  103. kModeNotResizeBit                EQU        4                    ; Do not use this mode to resize display (for cards that mode drives a different connector). 
  104. kNeverShowModeBit                EQU        5                    ; This mode should not be shown in the user interface. 
  105. ;     Summary Change Flags (sticky bits indicating an operation was performed)
  106. ;    For example, moving a display then moving it back will still set the kMovedDisplayBit.
  107. ;
  108.  
  109.  
  110. kBeginEndConfigureBit            EQU        0
  111. kMovedDisplayBit                EQU        1
  112. kSetMainDisplayBit                EQU        2
  113. kSetDisplayModeBit                EQU        3
  114. kAddDisplayBit                    EQU        4
  115. kRemoveDisplayBit                EQU        5
  116. kNewDisplayBit                    EQU        6
  117. kDisposeDisplayBit                EQU        7
  118. kEnabledDisplayBit                EQU        8
  119. kDisabledDisplayBit                EQU        9
  120. kMirrorDisplayBit                EQU        10
  121. kUnMirrorDisplayBit                EQU        11
  122.  
  123.  
  124.                                                             ; Notification Messages for extended call back routines 
  125. kDMNotifyInstalled                EQU        1                    ; At install time 
  126. kDMNotifyEvent                    EQU        2                    ; Post change time 
  127. kDMNotifyRemoved                EQU        3                    ; At remove time 
  128. kDMNotifyPrep                    EQU        4                    ; Pre change time 
  129. kDMNotifyExtendEvent            EQU        5                    ; Allow registrees to extend apple event before it is sent 
  130. kDMNotifyDependents                EQU        6                    ; Minor notification check without full update 
  131. kDMNotifySuspendConfigure        EQU        7                    ; Temporary end of configuration 
  132. kDMNotifyResumeConfigure        EQU        8                    ; Resume configuration 
  133. kDMNotifyRequestDisplayProbe    EQU        9                    ; Request smart displays re-probe (used in sleep and hot plugging) 
  134.                                                             ; Notification Flags 
  135. kExtendedNotificationProc        EQU        $00010000
  136.  
  137. ;  types for notifyType 
  138.  
  139. kFullNotify                        EQU        0                    ; This is the appleevent whole nine yards notify 
  140. kFullDependencyNotify            EQU        1                    ; Only sends to those who want to know about interrelated functionality (used for updating UI) 
  141. ;  DisplayID/DeviceID constants 
  142.  
  143. kDummyDeviceID                    EQU        $00FF                ; This is the ID of the dummy display, used when the last “real” display is disabled.
  144. kInvalidDisplayID                EQU        $0000                ; This is the invalid ID
  145. kFirstDisplayID                    EQU        $0100
  146.  
  147.                                                             ; bits for panelListFlags 
  148. kAllowDuplicatesBit                EQU        0
  149.  
  150.                                                             ; bits for nameFlags 
  151. kSuppressNumberBit                EQU        0
  152. kSuppressNumberMask                EQU        1
  153. kForceNumberBit                    EQU        1
  154. kForceNumberMask                EQU        2
  155. kSuppressNameBit                EQU        2
  156. kSuppressNameMask                EQU        4
  157.  
  158.  
  159. ;  Constants for fidelity checks 
  160.  
  161. kNoFidelity                        EQU        0
  162. kMinimumFidelity                EQU        1
  163. kDefaultFidelity                EQU        500                    ; I'm just picking a number for Apple default panels and engines
  164. kDefaultManufacturerFidelity    EQU        1000                ; I'm just picking a number for Manufacturer's panels and engines (overrides apple defaults)
  165.  
  166. kAnyPanelType                    EQU        0                    ; Pass to DMNewEngineList for list of all panels (as opposed to specific types)
  167. kAnyEngineType                    EQU        0                    ; Pass to DMNewEngineList for list of all engines
  168. kAnyDeviceType                    EQU        0                    ; Pass to DMNewDeviceList for list of all devices
  169. kAnyPortType                    EQU        0                    ; Pass to DMNewDevicePortList for list of all devices
  170. ;  portListFlags for DM_NewDevicePortList 
  171.  
  172.                                                             ; Should offline devices be put into the port list (such as dummy display) 
  173. kPLIncludeOfflineDevicesBit        EQU        0
  174.  
  175. ;  confirmFlags for DMConfirmConfiguration 
  176.  
  177. kForceConfirmBit                EQU        0                    ; Force a confirm dialog 
  178. kForceConfirmMask                EQU        $01
  179.  
  180. ;  Flags for displayModeFlags 
  181.  
  182. kDisplayModeListNotPreferredBit    EQU        0
  183. kDisplayModeListNotPreferredMask EQU    $01
  184.  
  185. ;  Flags for itemFlags 
  186.  
  187. kComponentListNotPreferredBit    EQU        0
  188. kComponentListNotPreferredMask    EQU        $01
  189.  
  190. kDisplayTimingInfoVersionZero    EQU        1
  191. kDisplayTimingInfoReservedCountVersionZero EQU 16
  192. kDisplayModeEntryVersionZero    EQU        0                    ; displayModeVersion - original version
  193. kDisplayModeEntryVersionOne        EQU        1                    ; displayModeVersion - added displayModeOverrideInfo
  194.  
  195.  
  196. ; typedef unsigned long                 DMFidelityType
  197.  
  198.  
  199. ;   AVID is an ID for ports and devices the old DisplayID type
  200. ;      is carried on for compatibility
  201.  
  202.  
  203.  
  204. ; typedef unsigned long                 AVIDType
  205.  
  206. ; typedef AVIDType                         DisplayIDType
  207.  
  208. ; typedef void *                        DMListType
  209.  
  210. ; typedef unsigned long                 DMListIndexType
  211.  
  212. AVPowerStateRec            RECORD 0
  213. f                         ds        VDPowerStateRec
  214. sizeof                     EQU *                    ; size:   $10 (16)
  215.                         ENDR
  216.  
  217.  
  218. ; typedef struct VDPowerStateRec *        AVPowerStatePtr
  219.  
  220. DMDisplayTimingInfoRec    RECORD 0
  221. timingInfoVersion         ds.l    1                ; offset: $0 (0)
  222. timingInfoAttributes     ds.l    1                ; offset: $4 (4)        ;  Flags 
  223. timingInfoRelativeQuality  ds.l    1                ; offset: $8 (8)        ;  quality of the timing 
  224. timingInfoRelativeDefault  ds.l    1                ; offset: $C (12)        ;  relative default of the timing 
  225. timingInfoReserved         ds.l    16                ; offset: $10 (16)        ;  Reserved 
  226. sizeof                     EQU *                    ; size:   $50 (80)
  227.                         ENDR
  228. ; typedef struct DMDisplayTimingInfoRec * DMDisplayTimingInfoPtr
  229.  
  230.  
  231. DMComponentListEntryRec    RECORD 0
  232. itemID                     ds.l    1                ; offset: $0 (0)        ;  DisplayID Manager
  233. itemComponent             ds.l    1                ; offset: $4 (4)        ;  Component Manager
  234. itemDescription             ds        ComponentDescription ; offset: $8 (8)    ;  We can always construct this if we use something beyond the compontent mgr.
  235. itemClass                 ds.l    1                ; offset: $1C (28)        ;  Class of group to put this panel (eg geometry/color/etc for panels, brightness/contrast for engines, video out/sound/etc for devices)
  236. itemFidelity             ds.l    1                ; offset: $20 (32)        ;  How good is this item for the specified search?
  237. itemSubClass             ds.l    1                ; offset: $24 (36)        ;  Subclass of group to put this panel.  Can use to do sub-grouping (eg volume for volume panel and mute panel)
  238. itemSort                 ds        Point            ; offset: $28 (40)        ;  Set to 0 - future to sort the items in a sub group.
  239. itemFlags                 ds.l    1                ; offset: $2C (44)        ;  Set to 0 (future expansion)
  240. itemReserved             ds.l    1                ; offset: $30 (48)        ;  What kind of code does the itemReference point to  (right now - kPanelEntryTypeComponentMgr only)
  241. itemFuture1                 ds.l    1                ; offset: $34 (52)        ;  Set to 0 (future expansion - probably an alternate code style)
  242. itemFuture2                 ds.l    1                ; offset: $38 (56)        ;  Set to 0 (future expansion - probably an alternate code style)
  243. itemFuture3                 ds.l    1                ; offset: $3C (60)        ;  Set to 0 (future expansion - probably an alternate code style)
  244. itemFuture4                 ds.l    1                ; offset: $40 (64)        ;  Set to 0 (future expansion - probably an alternate code style)
  245. sizeof                     EQU *                    ; size:   $44 (68)
  246.                         ENDR
  247. ; typedef struct DMComponentListEntryRec * DMComponentListEntryPtr
  248.  
  249. ;  ••• Move AVLocationRec to AVComponents.i AFTER AVComponents.i is created
  250. AVLocationRec            RECORD 0
  251. locationConstant         ds.l    1                ; offset: $0 (0)        ;  Set to 0 (future expansion - probably an alternate code style)
  252. sizeof                     EQU *                    ; size:   $4 (4)
  253.                         ENDR
  254. ; typedef struct AVLocationRec *        AVLocationPtr
  255.  
  256. DMDepthInfoRec            RECORD 0
  257. depthSwitchInfo             ds.l    1                ; offset: $0 (0)        ;  This is the switch mode to choose this timing/depth 
  258. depthVPBlock             ds.l    1                ; offset: $4 (4)        ;  VPBlock (including size, depth and format) 
  259. depthFlags                 ds.l    1                ; offset: $8 (8)        ;  VDVideoParametersInfoRec.csDepthFlags  
  260. depthReserved1             ds.l    1                ; offset: $C (12)        ;  Reserved 
  261. depthReserved2             ds.l    1                ; offset: $10 (16)        ;  Reserved 
  262. sizeof                     EQU *                    ; size:   $14 (20)
  263.                         ENDR
  264. ; typedef struct DMDepthInfoRec *        DMDepthInfoPtr
  265.  
  266. DMDepthInfoBlockRec        RECORD 0
  267. depthBlockCount             ds.l    1                ; offset: $0 (0)        ;  How many depths are there? 
  268. depthVPBlock             ds.l    1                ; offset: $4 (4)        ;  Array of DMDepthInfoRec 
  269. depthBlockFlags             ds.l    1                ; offset: $8 (8)        ;  Reserved 
  270. depthBlockReserved1         ds.l    1                ; offset: $C (12)        ;  Reserved 
  271. depthBlockReserved2         ds.l    1                ; offset: $10 (16)        ;  Reserved 
  272. sizeof                     EQU *                    ; size:   $14 (20)
  273.                         ENDR
  274. ; typedef struct DMDepthInfoBlockRec *    DMDepthInfoBlockPtr
  275.  
  276. DMDisplayModeListEntryRec RECORD 0
  277. displayModeFlags         ds.l    1                ; offset: $0 (0)
  278. displayModeSwitchInfo     ds.l    1                ; offset: $4 (4)
  279. displayModeResolutionInfo  ds.l    1                ; offset: $8 (8)
  280. displayModeTimingInfo     ds.l    1                ; offset: $C (12)
  281. displayModeDepthBlockInfo  ds.l    1                ; offset: $10 (16)        ;  Information about all the depths
  282. displayModeVersion         ds.l    1                ; offset: $14 (20)        ;  What version is this record (now kDisplayModeEntryVersionOne)
  283. displayModeName             ds.l    1                ; offset: $18 (24)        ;  Name of the timing mode
  284. displayModeDisplayInfo     ds.l    1                ; offset: $1C (28)        ;  Information from the display.
  285. sizeof                     EQU *                    ; size:   $20 (32)
  286.                         ENDR
  287. ; typedef struct DMDisplayModeListEntryRec * DMDisplayModeListEntryPtr
  288.  
  289.  
  290. DependentNotifyRec        RECORD 0
  291. notifyType                 ds.l    1                ; offset: $0 (0)        ;  What type was the engine that made the change (may be zero)
  292. notifyClass                 ds.l    1                ; offset: $4 (4)        ;  What class was the change (eg geometry, color etc)
  293. notifyPortID             ds.l    1                ; offset: $8 (8)        ;  Which device was touched (kInvalidDisplayID -> all or none)
  294. notifyComponent             ds.l    1                ; offset: $C (12)        ;  What engine did it (may be 0)?
  295. notifyVersion             ds.l    1                ; offset: $10 (16)        ;  Set to 0 (future expansion)
  296. notifyFlags                 ds.l    1                ; offset: $14 (20)        ;  Set to 0 (future expansion)
  297. notifyReserved             ds.l    1                ; offset: $18 (24)        ;  Set to 0 (future expansion)
  298. notifyFuture             ds.l    1                ; offset: $1C (28)        ;  Set to 0 (future expansion)
  299. sizeof                     EQU *                    ; size:   $20 (32)
  300.                         ENDR
  301. ; typedef struct DependentNotifyRec *    DependentNotifyPtr
  302.  
  303. ;  Exports to support Interfaces library containing unused calls 
  304.     IF ¬ FOR_GLUE_LIB THEN
  305.     ENDIF
  306.  
  307. ;  Trap interfaces 
  308.  
  309.     IF ¬ FOR_GLUE_LIB THEN
  310. ;
  311. ; pascal GDHandle DMGetFirstScreenDevice(Boolean activeOnly)
  312. ;
  313.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  314.         Macro
  315.         _DMGetFirstScreenDevice
  316.             moveq               #0,D0
  317.             dc.w                $ABEB
  318.         EndM
  319.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  320.         IMPORT_CFM_FUNCTION DMGetFirstScreenDevice
  321.     ENDIF
  322.  
  323. ;
  324. ; pascal GDHandle DMGetNextScreenDevice(GDHandle theDevice, Boolean activeOnly)
  325. ;
  326.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  327.         Macro
  328.         _DMGetNextScreenDevice
  329.             moveq               #1,D0
  330.             dc.w                $ABEB
  331.         EndM
  332.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  333.         IMPORT_CFM_FUNCTION DMGetNextScreenDevice
  334.     ENDIF
  335.  
  336. ;
  337. ; pascal void DMDrawDesktopRect(Rect *globalRect)
  338. ;
  339.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  340.         Macro
  341.         _DMDrawDesktopRect
  342.             moveq               #2,D0
  343.             dc.w                $ABEB
  344.         EndM
  345.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  346.         IMPORT_CFM_FUNCTION DMDrawDesktopRect
  347.     ENDIF
  348.  
  349. ;
  350. ; pascal void DMDrawDesktopRegion(RgnHandle globalRgn)
  351. ;
  352.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  353.         Macro
  354.         _DMDrawDesktopRegion
  355.             moveq               #3,D0
  356.             dc.w                $ABEB
  357.         EndM
  358.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  359.         IMPORT_CFM_FUNCTION DMDrawDesktopRegion
  360.     ENDIF
  361.  
  362.  
  363.  
  364. ;
  365. ; pascal OSErr DMBeginConfigureDisplays(Handle *displayState)
  366. ;
  367.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  368.         Macro
  369.         _DMBeginConfigureDisplays
  370.             move.w              #$0206,D0
  371.             dc.w                $ABEB
  372.         EndM
  373.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  374.         IMPORT_CFM_FUNCTION DMBeginConfigureDisplays
  375.     ENDIF
  376.  
  377. ;
  378. ; pascal OSErr DMEndConfigureDisplays(Handle displayState)
  379. ;
  380.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  381.         Macro
  382.         _DMEndConfigureDisplays
  383.             move.w              #$0207,D0
  384.             dc.w                $ABEB
  385.         EndM
  386.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  387.         IMPORT_CFM_FUNCTION DMEndConfigureDisplays
  388.     ENDIF
  389.  
  390. ;
  391. ; pascal OSErr DMAddDisplay(GDHandle newDevice, short driver, unsigned long mode, unsigned long reserved, unsigned long displayID, Component displayComponent, Handle displayState)
  392. ;
  393.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  394.         Macro
  395.         _DMAddDisplay
  396.             move.w              #$0D08,D0
  397.             dc.w                $ABEB
  398.         EndM
  399.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  400.         IMPORT_CFM_FUNCTION DMAddDisplay
  401.     ENDIF
  402.  
  403. ;
  404. ; pascal OSErr DMMoveDisplay(GDHandle moveDevice, short x, short y, Handle displayState)
  405. ;
  406.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  407.         Macro
  408.         _DMMoveDisplay
  409.             move.w              #$0609,D0
  410.             dc.w                $ABEB
  411.         EndM
  412.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  413.         IMPORT_CFM_FUNCTION DMMoveDisplay
  414.     ENDIF
  415.  
  416. ;
  417. ; pascal OSErr DMDisableDisplay(GDHandle disableDevice, Handle displayState)
  418. ;
  419.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  420.         Macro
  421.         _DMDisableDisplay
  422.             move.w              #$040A,D0
  423.             dc.w                $ABEB
  424.         EndM
  425.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  426.         IMPORT_CFM_FUNCTION DMDisableDisplay
  427.     ENDIF
  428.  
  429. ;
  430. ; pascal OSErr DMEnableDisplay(GDHandle enableDevice, Handle displayState)
  431. ;
  432.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  433.         Macro
  434.         _DMEnableDisplay
  435.             move.w              #$040B,D0
  436.             dc.w                $ABEB
  437.         EndM
  438.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  439.         IMPORT_CFM_FUNCTION DMEnableDisplay
  440.     ENDIF
  441.  
  442. ;
  443. ; pascal OSErr DMRemoveDisplay(GDHandle removeDevice, Handle displayState)
  444. ;
  445.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  446.         Macro
  447.         _DMRemoveDisplay
  448.             move.w              #$040C,D0
  449.             dc.w                $ABEB
  450.         EndM
  451.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  452.         IMPORT_CFM_FUNCTION DMRemoveDisplay
  453.     ENDIF
  454.  
  455.  
  456.  
  457.  
  458. ;
  459. ; pascal OSErr DMSetMainDisplay(GDHandle newMainDevice, Handle displayState)
  460. ;
  461.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  462.         Macro
  463.         _DMSetMainDisplay
  464.             move.w              #$0410,D0
  465.             dc.w                $ABEB
  466.         EndM
  467.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  468.         IMPORT_CFM_FUNCTION DMSetMainDisplay
  469.     ENDIF
  470.  
  471. ;
  472. ; pascal OSErr DMSetDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long *depthMode, unsigned long reserved, Handle displayState)
  473. ;
  474.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  475.         Macro
  476.         _DMSetDisplayMode
  477.             move.w              #$0A11,D0
  478.             dc.w                $ABEB
  479.         EndM
  480.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  481.         IMPORT_CFM_FUNCTION DMSetDisplayMode
  482.     ENDIF
  483.  
  484. ;
  485. ; pascal OSErr DMCheckDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long depthMode, unsigned long *switchFlags, unsigned long reserved, Boolean *modeOk)
  486. ;
  487.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  488.         Macro
  489.         _DMCheckDisplayMode
  490.             move.w              #$0C12,D0
  491.             dc.w                $ABEB
  492.         EndM
  493.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  494.         IMPORT_CFM_FUNCTION DMCheckDisplayMode
  495.     ENDIF
  496.  
  497. ;
  498. ; pascal OSErr DMGetDeskRegion(RgnHandle *desktopRegion)
  499. ;
  500.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  501.         Macro
  502.         _DMGetDeskRegion
  503.             move.w              #$0213,D0
  504.             dc.w                $ABEB
  505.         EndM
  506.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  507.         IMPORT_CFM_FUNCTION DMGetDeskRegion
  508.     ENDIF
  509.  
  510. ;
  511. ; pascal OSErr DMRegisterNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  512. ;
  513.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  514.         Macro
  515.         _DMRegisterNotifyProc
  516.             move.w              #$0414,D0
  517.             dc.w                $ABEB
  518.         EndM
  519.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  520.         IMPORT_CFM_FUNCTION DMRegisterNotifyProc
  521.     ENDIF
  522.  
  523. ;
  524. ; pascal OSErr DMRemoveNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  525. ;
  526.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  527.         Macro
  528.         _DMRemoveNotifyProc
  529.             move.w              #$0415,D0
  530.             dc.w                $ABEB
  531.         EndM
  532.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  533.         IMPORT_CFM_FUNCTION DMRemoveNotifyProc
  534.     ENDIF
  535.  
  536.  
  537. ;
  538. ; pascal OSErr DMQDIsMirroringCapable(Boolean *qdIsMirroringCapable)
  539. ;
  540.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  541.         Macro
  542.         _DMQDIsMirroringCapable
  543.             move.w              #$0216,D0
  544.             dc.w                $ABEB
  545.         EndM
  546.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  547.         IMPORT_CFM_FUNCTION DMQDIsMirroringCapable
  548.     ENDIF
  549.  
  550. ;
  551. ; pascal OSErr DMCanMirrorNow(Boolean *canMirrorNow)
  552. ;
  553.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  554.         Macro
  555.         _DMCanMirrorNow
  556.             move.w              #$0217,D0
  557.             dc.w                $ABEB
  558.         EndM
  559.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  560.         IMPORT_CFM_FUNCTION DMCanMirrorNow
  561.     ENDIF
  562.  
  563. ;
  564. ; pascal OSErr DMIsMirroringOn(Boolean *isMirroringOn)
  565. ;
  566.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  567.         Macro
  568.         _DMIsMirroringOn
  569.             move.w              #$0218,D0
  570.             dc.w                $ABEB
  571.         EndM
  572.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  573.         IMPORT_CFM_FUNCTION DMIsMirroringOn
  574.     ENDIF
  575.  
  576. ;
  577. ; pascal OSErr DMMirrorDevices(GDHandle gD1, GDHandle gD2, Handle displayState)
  578. ;
  579.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  580.         Macro
  581.         _DMMirrorDevices
  582.             move.w              #$0619,D0
  583.             dc.w                $ABEB
  584.         EndM
  585.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  586.         IMPORT_CFM_FUNCTION DMMirrorDevices
  587.     ENDIF
  588.  
  589. ;
  590. ; pascal OSErr DMUnmirrorDevice(GDHandle gDevice, Handle displayState)
  591. ;
  592.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  593.         Macro
  594.         _DMUnmirrorDevice
  595.             move.w              #$041A,D0
  596.             dc.w                $ABEB
  597.         EndM
  598.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  599.         IMPORT_CFM_FUNCTION DMUnmirrorDevice
  600.     ENDIF
  601.  
  602. ;
  603. ; pascal OSErr DMGetNextMirroredDevice(GDHandle gDevice, GDHandle *mirroredDevice)
  604. ;
  605.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  606.         Macro
  607.         _DMGetNextMirroredDevice
  608.             move.w              #$041B,D0
  609.             dc.w                $ABEB
  610.         EndM
  611.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  612.         IMPORT_CFM_FUNCTION DMGetNextMirroredDevice
  613.     ENDIF
  614.  
  615. ;
  616. ; pascal OSErr DMBlockMirroring(void )
  617. ;
  618.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  619.         Macro
  620.         _DMBlockMirroring
  621.             moveq               #28,D0
  622.             dc.w                $ABEB
  623.         EndM
  624.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  625.         IMPORT_CFM_FUNCTION DMBlockMirroring
  626.     ENDIF
  627.  
  628. ;
  629. ; pascal OSErr DMUnblockMirroring(void )
  630. ;
  631.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  632.         Macro
  633.         _DMUnblockMirroring
  634.             moveq               #29,D0
  635.             dc.w                $ABEB
  636.         EndM
  637.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  638.         IMPORT_CFM_FUNCTION DMUnblockMirroring
  639.     ENDIF
  640.  
  641. ;
  642. ; pascal OSErr DMGetDisplayMgrA5World(Ptr *dmA5)
  643. ;
  644.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  645.         Macro
  646.         _DMGetDisplayMgrA5World
  647.             move.w              #$021E,D0
  648.             dc.w                $ABEB
  649.         EndM
  650.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  651.         IMPORT_CFM_FUNCTION DMGetDisplayMgrA5World
  652.     ENDIF
  653.  
  654. ;
  655. ; pascal OSErr DMGetDisplayIDByGDevice(GDHandle displayDevice, DisplayIDType *displayID, Boolean failToMain)
  656. ;
  657.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  658.         Macro
  659.         _DMGetDisplayIDByGDevice
  660.             move.w              #$051F,D0
  661.             dc.w                $ABEB
  662.         EndM
  663.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  664.         IMPORT_CFM_FUNCTION DMGetDisplayIDByGDevice
  665.     ENDIF
  666.  
  667. ;
  668. ; pascal OSErr DMGetGDeviceByDisplayID(DisplayIDType displayID, GDHandle *displayDevice, Boolean failToMain)
  669. ;
  670.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  671.         Macro
  672.         _DMGetGDeviceByDisplayID
  673.             move.w              #$0520,D0
  674.             dc.w                $ABEB
  675.         EndM
  676.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  677.         IMPORT_CFM_FUNCTION DMGetGDeviceByDisplayID
  678.     ENDIF
  679.  
  680. ;
  681. ; pascal OSErr DMSetDisplayComponent(GDHandle theDevice, Component displayComponent)
  682. ;
  683.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  684.         Macro
  685.         _DMSetDisplayComponent
  686.             move.w              #$0421,D0
  687.             dc.w                $ABEB
  688.         EndM
  689.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  690.         IMPORT_CFM_FUNCTION DMSetDisplayComponent
  691.     ENDIF
  692.  
  693. ;
  694. ; pascal OSErr DMGetDisplayComponent(GDHandle theDevice, Component *displayComponent)
  695. ;
  696.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  697.         Macro
  698.         _DMGetDisplayComponent
  699.             move.w              #$0422,D0
  700.             dc.w                $ABEB
  701.         EndM
  702.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  703.         IMPORT_CFM_FUNCTION DMGetDisplayComponent
  704.     ENDIF
  705.  
  706. ;
  707. ; pascal OSErr DMNewDisplay(GDHandle *newDevice, short driverRefNum, unsigned long mode, unsigned long reserved, DisplayIDType displayID, Component displayComponent, Handle displayState)
  708. ;
  709.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  710.         Macro
  711.         _DMNewDisplay
  712.             move.w              #$0D23,D0
  713.             dc.w                $ABEB
  714.         EndM
  715.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  716.         IMPORT_CFM_FUNCTION DMNewDisplay
  717.     ENDIF
  718.  
  719. ;
  720. ; pascal OSErr DMDisposeDisplay(GDHandle disposeDevice, Handle displayState)
  721. ;
  722.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  723.         Macro
  724.         _DMDisposeDisplay
  725.             move.w              #$0424,D0
  726.             dc.w                $ABEB
  727.         EndM
  728.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  729.         IMPORT_CFM_FUNCTION DMDisposeDisplay
  730.     ENDIF
  731.  
  732. ;
  733. ; pascal OSErr DMResolveDisplayComponents(void )
  734. ;
  735.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  736.         Macro
  737.         _DMResolveDisplayComponents
  738.             moveq               #37,D0
  739.             dc.w                $ABEB
  740.         EndM
  741.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  742.         IMPORT_CFM_FUNCTION DMResolveDisplayComponents
  743.     ENDIF
  744.  
  745.     ENDIF
  746.     IF ¬ FOR_68kGLUE_LIB THEN
  747. ;
  748. ; pascal OSErr DMRegisterExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, unsigned short nofifyOnFlags, ProcessSerialNumberPtr whichPSN)
  749. ;
  750.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  751.         Macro
  752.         _DMRegisterExtendedNotifyProc
  753.             move.w              #$07EF,D0
  754.             dc.w                $ABEB
  755.         EndM
  756.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  757.         IMPORT_CFM_FUNCTION DMRegisterExtendedNotifyProc
  758.     ENDIF
  759.  
  760. ;
  761. ; pascal OSErr DMRemoveExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, ProcessSerialNumberPtr whichPSN, unsigned short removeFlags)
  762. ;
  763.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  764.         Macro
  765.         _DMRemoveExtendedNotifyProc
  766.             move.w              #$0726,D0
  767.             dc.w                $ABEB
  768.         EndM
  769.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  770.         IMPORT_CFM_FUNCTION DMRemoveExtendedNotifyProc
  771.     ENDIF
  772.  
  773.     ENDIF
  774. ;
  775. ; pascal OSErr DMNewAVPanelList(DisplayIDType displayID, ResType panelType, DMFidelityType minimumFidelity, unsigned long panelListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  776. ;
  777.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  778.         Macro
  779.         _DMNewAVPanelList
  780.             move.w              #$0C27,D0
  781.             dc.w                $ABEB
  782.         EndM
  783.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  784.         IMPORT_CFM_FUNCTION DMNewAVPanelList
  785.     ENDIF
  786.  
  787. ;
  788. ; pascal OSErr DMNewAVEngineList(DisplayIDType displayID, ResType engineType, DMFidelityType minimumFidelity, unsigned long engineListFlags, unsigned long reserved, DMListIndexType *engineCount, DMListType *engineList)
  789. ;
  790.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  791.         Macro
  792.         _DMNewAVEngineList
  793.             move.w              #$0C28,D0
  794.             dc.w                $ABEB
  795.         EndM
  796.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  797.         IMPORT_CFM_FUNCTION DMNewAVEngineList
  798.     ENDIF
  799.  
  800. ;
  801. ; pascal OSErr DMNewAVDeviceList(ResType deviceType, unsigned long deviceListFlags, unsigned long reserved, DMListIndexType *deviceCount, DMListType *deviceList)
  802. ;
  803.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  804.         Macro
  805.         _DMNewAVDeviceList
  806.             move.w              #$0A29,D0
  807.             dc.w                $ABEB
  808.         EndM
  809.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  810.         IMPORT_CFM_FUNCTION DMNewAVDeviceList
  811.     ENDIF
  812.  
  813. ;
  814. ; pascal OSErr DMNewAVPortListByPortType(ResType subType, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  815. ;
  816.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  817.         Macro
  818.         _DMNewAVPortListByPortType
  819.             move.w              #$0A2A,D0
  820.             dc.w                $ABEB
  821.         EndM
  822.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  823.         IMPORT_CFM_FUNCTION DMNewAVPortListByPortType
  824.     ENDIF
  825.  
  826. ;
  827. ; pascal OSErr DMGetIndexedComponentFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMComponentListIteratorUPP listIterator, void *userData)
  828. ;
  829.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  830.         Macro
  831.         _DMGetIndexedComponentFromList
  832.             move.w              #$0A2B,D0
  833.             dc.w                $ABEB
  834.         EndM
  835.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  836.         IMPORT_CFM_FUNCTION DMGetIndexedComponentFromList
  837.     ENDIF
  838.  
  839.     IF ¬ FOR_68kGLUE_LIB THEN
  840. ;
  841. ; pascal OSErr DMDisposeList(DMListType panelList)
  842. ;
  843.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  844.         Macro
  845.         _DMDisposeList
  846.             move.w              #$022C,D0
  847.             dc.w                $ABEB
  848.         EndM
  849.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  850.         IMPORT_CFM_FUNCTION DMDisposeList
  851.     ENDIF
  852.  
  853.     ENDIF
  854. ;
  855. ; pascal OSErr DMGetNameByAVID(AVIDType theID, unsigned long nameFlags, Str255 name)
  856. ;
  857.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  858.         Macro
  859.         _DMGetNameByAVID
  860.             move.w              #$062D,D0
  861.             dc.w                $ABEB
  862.         EndM
  863.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  864.         IMPORT_CFM_FUNCTION DMGetNameByAVID
  865.     ENDIF
  866.  
  867. ;
  868. ; pascal OSErr DMNewAVIDByPortComponent(Component thePortComponent, ResType portKind, unsigned long reserved, AVIDType *newID)
  869. ;
  870.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  871.         Macro
  872.         _DMNewAVIDByPortComponent
  873.             move.w              #$082E,D0
  874.             dc.w                $ABEB
  875.         EndM
  876.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  877.         IMPORT_CFM_FUNCTION DMNewAVIDByPortComponent
  878.     ENDIF
  879.  
  880. ;
  881. ; pascal OSErr DMGetPortComponentByAVID(DisplayIDType thePortID, Component *thePortComponent, ComponentDescription *theDesciption, ResType *thePortKind)
  882. ;
  883.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  884.         Macro
  885.         _DMGetPortComponentByAVID
  886.             move.w              #$082F,D0
  887.             dc.w                $ABEB
  888.         EndM
  889.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  890.         IMPORT_CFM_FUNCTION DMGetPortComponentByAVID
  891.     ENDIF
  892.  
  893.     IF ¬ FOR_68kGLUE_LIB THEN
  894. ;
  895. ; pascal OSErr DMSendDependentNotification(ResType notifyType, ResType notifyClass, AVIDType displayID, ComponentInstance notifyComponent)
  896. ;
  897.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  898.         Macro
  899.         _DMSendDependentNotification
  900.             move.w              #$0830,D0
  901.             dc.w                $ABEB
  902.         EndM
  903.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  904.         IMPORT_CFM_FUNCTION DMSendDependentNotification
  905.     ENDIF
  906.  
  907.     ENDIF
  908. ;
  909. ; pascal OSErr DMDisposeAVComponent(Component theAVComponent)
  910. ;
  911.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  912.         Macro
  913.         _DMDisposeAVComponent
  914.             move.w              #$0231,D0
  915.             dc.w                $ABEB
  916.         EndM
  917.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  918.         IMPORT_CFM_FUNCTION DMDisposeAVComponent
  919.     ENDIF
  920.  
  921. ;
  922. ; pascal OSErr DMSaveScreenPrefs(unsigned long reserved1, unsigned long saveFlags, unsigned long reserved2)
  923. ;
  924.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  925.         Macro
  926.         _DMSaveScreenPrefs
  927.             move.w              #$0632,D0
  928.             dc.w                $ABEB
  929.         EndM
  930.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  931.         IMPORT_CFM_FUNCTION DMSaveScreenPrefs
  932.     ENDIF
  933.  
  934. ;
  935. ; pascal OSErr DMNewAVIDByDeviceComponent(Component theDeviceComponent, ResType portKind, unsigned long reserved, DisplayIDType *newID)
  936. ;
  937.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  938.         Macro
  939.         _DMNewAVIDByDeviceComponent
  940.             move.w              #$0833,D0
  941.             dc.w                $ABEB
  942.         EndM
  943.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  944.         IMPORT_CFM_FUNCTION DMNewAVIDByDeviceComponent
  945.     ENDIF
  946.  
  947. ;
  948. ; pascal OSErr DMNewAVPortListByDeviceAVID(AVIDType theID, DMFidelityType minimumFidelity, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  949. ;
  950.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  951.         Macro
  952.         _DMNewAVPortListByDeviceAVID
  953.             move.w              #$0C34,D0
  954.             dc.w                $ABEB
  955.         EndM
  956.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  957.         IMPORT_CFM_FUNCTION DMNewAVPortListByDeviceAVID
  958.     ENDIF
  959.  
  960. ;
  961. ; pascal OSErr DMGetDeviceComponentByAVID(AVIDType theDeviceID, Component *theDeviceComponent, ComponentDescription *theDesciption, ResType *theDeviceKind)
  962. ;
  963.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  964.         Macro
  965.         _DMGetDeviceComponentByAVID
  966.             move.w              #$0835,D0
  967.             dc.w                $ABEB
  968.         EndM
  969.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  970.         IMPORT_CFM_FUNCTION DMGetDeviceComponentByAVID
  971.     ENDIF
  972.  
  973. ;
  974. ; pascal OSErr DMNewDisplayModeList(DisplayIDType displayID, unsigned long modeListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  975. ;
  976.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  977.         Macro
  978.         _DMNewDisplayModeList
  979.             move.w              #$0A36,D0
  980.             dc.w                $ABEB
  981.         EndM
  982.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  983.         IMPORT_CFM_FUNCTION DMNewDisplayModeList
  984.     ENDIF
  985.  
  986. ;
  987. ; pascal OSErr DMGetIndexedDisplayModeFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMDisplayModeListIteratorUPP listIterator, void *userData)
  988. ;
  989.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  990.         Macro
  991.         _DMGetIndexedDisplayModeFromList
  992.             move.w              #$0A37,D0
  993.             dc.w                $ABEB
  994.         EndM
  995.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  996.         IMPORT_CFM_FUNCTION DMGetIndexedDisplayModeFromList
  997.     ENDIF
  998.  
  999. ;
  1000. ; pascal OSErr DMGetGraphicInfoByAVID(AVIDType theID, PicHandle *theAVPcit, Handle *theAVIconSuite, AVLocationRec *theAVLocation)
  1001. ;
  1002.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1003.         Macro
  1004.         _DMGetGraphicInfoByAVID
  1005.             move.w              #$0838,D0
  1006.             dc.w                $ABEB
  1007.         EndM
  1008.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1009.         IMPORT_CFM_FUNCTION DMGetGraphicInfoByAVID
  1010.     ENDIF
  1011.  
  1012. ;
  1013. ; pascal OSErr DMGetAVPowerState(AVIDType theID, AVPowerStatePtr getPowerState, unsigned long reserved1)
  1014. ;
  1015.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1016.         Macro
  1017.         _DMGetAVPowerState
  1018.             move.w              #$0839,D0
  1019.             dc.w                $ABEB
  1020.         EndM
  1021.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1022.         IMPORT_CFM_FUNCTION DMGetAVPowerState
  1023.     ENDIF
  1024.  
  1025. ;
  1026. ; pascal OSErr DMSetAVPowerState(AVIDType theID, AVPowerStatePtr setPowerState, unsigned long powerFlags, Handle displayState)
  1027. ;
  1028.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1029.         Macro
  1030.         _DMSetAVPowerState
  1031.             move.w              #$083A,D0
  1032.             dc.w                $ABEB
  1033.         EndM
  1034.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1035.         IMPORT_CFM_FUNCTION DMSetAVPowerState
  1036.     ENDIF
  1037.  
  1038. ;
  1039. ; pascal OSErr DMGetDeviceAVIDByPortAVID(AVIDType portAVID, AVIDType *deviceAVID)
  1040. ;
  1041.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1042.         Macro
  1043.         _DMGetDeviceAVIDByPortAVID
  1044.             move.w              #$043B,D0
  1045.             dc.w                $ABEB
  1046.         EndM
  1047.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1048.         IMPORT_CFM_FUNCTION DMGetDeviceAVIDByPortAVID
  1049.     ENDIF
  1050.  
  1051. ;
  1052. ; pascal OSErr DMGetEnableByAVID(AVIDType theAVID, Boolean *isAVIDEnabledNow, Boolean *canChangeEnableNow)
  1053. ;
  1054.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1055.         Macro
  1056.         _DMGetEnableByAVID
  1057.             move.w              #$063C,D0
  1058.             dc.w                $ABEB
  1059.         EndM
  1060.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1061.         IMPORT_CFM_FUNCTION DMGetEnableByAVID
  1062.     ENDIF
  1063.  
  1064. ;
  1065. ; pascal OSErr DMSetEnableByAVID(AVIDType theAVID, Boolean doEnable, Handle displayState)
  1066. ;
  1067.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1068.         Macro
  1069.         _DMSetEnableByAVID
  1070.             move.w              #$053D,D0
  1071.             dc.w                $ABEB
  1072.         EndM
  1073.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1074.         IMPORT_CFM_FUNCTION DMSetEnableByAVID
  1075.     ENDIF
  1076.  
  1077. ;
  1078. ; pascal OSErr DMGetDisplayMode(GDHandle theDevice, VDSwitchInfoPtr switchInfo)
  1079. ;
  1080.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1081.         Macro
  1082.         _DMGetDisplayMode
  1083.             move.w              #$043E,D0
  1084.             dc.w                $ABEB
  1085.         EndM
  1086.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1087.         IMPORT_CFM_FUNCTION DMGetDisplayMode
  1088.     ENDIF
  1089.  
  1090. ;
  1091. ; pascal OSErr DMConfirmConfiguration(ModalFilterUPP filterProc, UInt32 confirmFlags, UInt32 reserved, Handle displayState)
  1092. ;
  1093.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1094.         Macro
  1095.         _DMConfirmConfiguration
  1096.             move.w              #$083F,D0
  1097.             dc.w                $ABEB
  1098.         EndM
  1099.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1100.         IMPORT_CFM_FUNCTION DMConfirmConfiguration
  1101.     ENDIF
  1102.  
  1103.  
  1104.     ENDIF ; __DISPLAYS__ 
  1105.  
  1106.